{
 * Uninstall.ps
 *
 * Pascal script for use in [Code] Section of FileVer7.iss. Causes uninstaller
 * to display a message dialog box to user before uninstaller runs.
 *
 * $Rev: 51 $
 * $Date: 2010-01-31 02:40:13 +0000 (Sun, 31 Jan 2010) $
 *
 * ***** BEGIN LICENSE BLOCK *****
 *
 * Version: MPL 1.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with the
 * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
 * the specific language governing rights and limitations under the License.
 *
 * The Original Code is Uninstall.ps.
 *
 * The Initial Developer of the Original Code is Peter Johnson
 * (http://www.delphidabbler.com/).
 *
 * Portions created by the Initial Developer are Copyright (C) 2007-2010 Peter
 * Johnson. All Rights Reserved.
 *
 * Contributor(s):
 *   NONE
 *
 * ***** END LICENSE BLOCK *****
}


procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
  {Displays message urging user to close VIS and Explorer instances before
  uninstalling. This method is called by uninstaller several times during
  execution.
    @param CurUninstallStep [in] Identifies stage reached by uninstaller.
  }
begin
  if CurUninstallStep = usUninstall then
  begin
    MsgBox(
      'Before continuing to uninstall Version Information Spy '
        + 'please close any open instances of the program. '#13#10#13#10
        + 'You should also close any open Explorer windows.',
      mbInformation,
      MB_OK
    );
  end;
end;

